Create or edit the berths.txt file

Use the steps in this topic to create and/or edit the content of the berths.txt file.

Before you begin:

You must:

  1. Have a compiled Yard (yard.nyd) file containing complete information for the #VERTICES and #PATHS data flags.

  1. Review these topics:

  1. Have Excel installed on your computer.

  2. Be able to create spreadsheet sections in Excel using this general layout:

To create the berths.txt file:

  1. In Excel, open a spreadsheet.

  1. Create the #LENGTH data flag section:

  1. In the first row of the spreadsheet, enter this content: *length of the quay, in meters

  2. In the second row, enter the data flag #LENGTH in the first column and the length of the quay in meters in the next column.

This example shows a #LENGTH data flag section.

  1. Create the #NAME data flag section:

  1. In the first row, enter an asterisk and an arbitrary name or description of your choice.

  1. In the second row, enter the data flag #NAME in the first column and the name of the quay (without quotation marks) in the second column .

This example shows a #NAME data flag section:

  1. Create the #TERMINAL data flag section:

  1. In the first row, enter these headings in the columns: Terminals, Name, Code, Min Range, Max Range, and Orientation.

  1. In the second row, specify the values of those column headings:

  1. (Optional): If you have more than one terminal, create a #TERMINAL data flag for each additional terminal. All terminals must range between 0 and the value defined in the #LENGTH data flag. Terminals cannot overlap because all berth locations must resolve to a unique terminal.

This example shows a completed #TERMINAL data flag section with two Terminals:

  1. Create the #USER_BERTH_RANGE data flag section:

  1. In the first row, enter these headings in the columns: Terminals, Name, Code, Min Range, Max Range, and Orientation.

  1. In the second row, specify the values of those column headings:

  1. Create the #DELAY data flag section:

  1. In the first row, enter this content: *minimum time delay between ships, in minutes

  1. In the next row, enter the data flag #DELAY in the first column and the minimum delay time in the second column.

This example shows a #DELAY data flag section.

  1. Create the #SPACING data flag section:

  1. In the first row, enter this content: *minimum between spacing between ships, in meters

  1. In the next row, enter the data flag #SPACING in the first column and the minimum distance in the second column.

This example shows a #SPACING data flag section:

  1. Create the #VERTEX data flag section.

  1. In the first row, enter a description of your choice.

  1. In the second row, enter these column headings:

Position (in meters)

Vertex (from 1 to 5 alphanumeric characters)

  1. In the third row, enter the #VERTEX data flag in the first column. Create as many rows as needed to accommodate all vertices.

This example shows a #VERTEX data flag section:

  1. Create the #VERTEXASCEND data flag section

  1. In the first row, enter this content: *Berth Coordinates (L/R) bollard increasing direction

  1. In the second row, enter the data flag #VERTEXASCEND in the first column.

  2. In the second row, second column indicate whether, when you're facing the water, the bollard positions increase in number from the left (L) or from the right (R).

This example shows a completed #VERTEXASCEND data flag section:

  1. Create the #BERTH data flag section:

  1. In the first row, enter this content: *Labels on the quay

  1. In the second row, enter these headings in the columns: Type, Start, End, Name, Ingress, Egress, Meter Mark (Optional), and Berth face to water.

(Optional) Add the data flags identified in the Display berth conflicts (on page 1) topic.

  1. In the third row, enter the data flag #BERTH in the first column and specify the values of those column headings:

  1. Create as many rows as needed to accommodate all berths.

This example shows a completed #BERTH data flag section:

  1. Create the #DIVISION data flag section:

  1. In the first row, enter this content: *gaps in the quay: where ships cannot cross boundaries

  1. In the second row enter the #DIVISION data flag in the first column, enter the

This example shows a completed #DIVISION data flag section:

  1. Create the #BOLLARD data flag section:

  1. In the first row, enter this content: *mark where the bollards are

  1. In the second row, enter the following column headings Location, Label, Ingress, and Egress.

  2. Beginning in the third row, enter the #BOLLARD data flag in the first column.

  3. Create a separate row for each bollard.

  4. Fill out the following columns as follows:

This example shows a completed #BOLLARD data flag section:

  1. Create the #QUAY data flag section:

  1. In the first row, enter this content: *Define Quays

  1. In the second row, enter the following column headings: Name, Min, Max, Traffic, and Dynamic Traffic.

  2. In the third row enter the #QUAY data flag in the first column. You create a separate row for each quay. For columns 2-6, fill out as follows:

Possible values:

A - Ascending: Traffic flows in the ascending direction of the logical coordinates of the block.

D - Descending: Traffic flows in the descending direction of the logical coordinates of the block.

B - Both: Traffic flows in both directions of the logical coordinates of the block.

A: Traffic flows one-way from the aft of the vessel to the fore of the vessel.

F: Traffic flows one-way from the fore of the vessel to the aft of the vessel.

Blank: Turns off this feature for this quay. In this case, the traffic is determined by the traffic field.

If you enter a value of A or F for the Dynamic Traffic field for a quay, the traffic direction for that quay is determined by the berth orientation (direction) of the visiting vessel regardless of any values in the traffic field. However, when there is no vessel visit, the traffic direction is determined by the traffic field for that quay or by the quay transfer zone block in the yard file (if you use the transfer approach to define the quay). The Dynamic Traffic setting applies for any timeframe.

  1. (Optional): If you have more than one quay, create a #QUAY data flag for each additional quay.

This example shows a completed #QUAY data flag section:

The berths.txt file is configured.

Post-requisite:

Follow these steps to save the file:

  1. Select File > Save as,

  1. Browse to and select the ProgramData/Navis/xps/data folder on the machine where XPS is installed.

  2. In File name: box enter Berths.

  3. Set the Save as type: to Text (Tab delimited).

  4. Click Save.